package teste;

import java.util.List;

import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;

import util.ConfigHibernate;

import model.Aluno;
import dao.AlunoDao;
import exception.ConexaoException;

public class TesteRogerio {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		AlunoDao dao = new AlunoDao();
		List<Aluno> lista = null;
		AnnotationConfigWebApplicationContext ct = new AnnotationConfigWebApplicationContext();
	
		try {
			dao.begin();
			lista = dao.listar("r", 0);
		} catch (ConexaoException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		if(lista != null){
			System.out.println("aaaaaaaaa Tamanho: " + lista.size());
		}
		
	}

}
